<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= webpackConfig.name %></title>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  <script>
    var userAgent = navigator.userAgent.toLowerCase() //  获取浏览器的userAgent字符串
    var rMsie = /(msie\s|trident.*rv:)([\w.]+)/
    var match = rMsie.exec(userAgent)
    if (match) {
      var ieVersion = match[2]
      console.log(ieVersion)
      if (parseInt(ieVersion) < 11){
        var conf = confirm("浏览器版本过低,为了能正常体验,请下载系统提供的浏览器")
        if (conf == true){
          window.open ('download.html')
          //window.open('http://10.3.64.212:8087/file/download?xzdz=74.0.3729.40_chrome_installer.exe')
        } else {
          window.opener = null
          window.open('','_self')
          window.close()
        }
      }
    }
  </script>
</html>
